const App = {
    // mixins: [Query],//配置文件，路径/utils/mixins.js
    data() {
        return {
            Data: [],
        }
    },
    mounted() {
        let ls_URL = window.location.href;
        let nodeKey = getQueryObject(ls_URL, "nodeKey");// 获取 nodeKey 参数
        this.handleShow(nodeKey);
    },
    methods: {
        xinwenjilu(row){
            window.location.href = './news.html?nodeKey=' + row.Contract_SerialNumber
        },
        handleShow(nodeKey) {
            $.ajax({
                headers: requestHeaders(),
                url: `${mh}/generalBusiness/generalQueryBySQLSerialNumber`,
                method: "post",
                data: {
                    SQLSerialNumber: "f_natural_resources_allocation",
                    Condition: window.btoa(unescape(encodeURIComponent(nodeKey + ',0'))),
                },
                success: (res) => {

                    this.Data = res;
                },
                complete: (XMLHttpRequest) => {
                    requestPretreatment(XMLHttpRequest);
                },
            });
        },
        xinwen(row) {
            window.location.href = '../../news_videos_files/news/add.html?action=Add&News_Category_SerialNumber=NC0000000000080&Party_Organization_Activity_SerialNumber=' + row.Contract_SerialNumber 
        },
        goBack() {
            window.history.back();
        },
    },
};

const { createApp } = Vue;
const app = createApp(App);
//这种方式是引入全部图标，无需单个引入
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
}
const ElMessage = ElementPlus.ElMessage;
app.use(ElementPlus,{locale: zhCn});
app.mount("#app");
